package com.e9ab98e991ab;

import android.app.Application;

import com.e9ab98e991ab.libcommon.base.BaseApplication;
import com.e9ab98e991ab.libcommon.utils.toast.ToastyUtils;
import com.squareup.leakcanary.LeakCanary;


/**
 * <p>这里仅需做一些初始化的工作</p>
 *
 * @author 高鑫
 * @version V1.0.0
 * @name SuborApplication
 */
public class AppApplication extends BaseApplication {

    @Override
    public void onCreate() {
        super.onCreate();

        initLeakCanary();

    }

    private void initLeakCanary() {
        // 内存泄露检查工具
        if (LeakCanary.isInAnalyzerProcess(this)) {
            // This process is dedicated to LeakCanary for heap analysis.
            // You should not init your app in this process.
            return;
        }
        LeakCanary.install(this);
    }
}
